/*
    This file is part of Raptor.

    Raptor is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Raptor is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Raptor.  If not, see <http://www.gnu.org/licenses/>.

 */

#ifndef CLIPBOARDDIALOG_H
#define CLIPBOARDDIALOG_H

#include "include/raptor.h"

#include <QDialog>
#include <QtGui>

class QLabel;
class QPushButton;
class Raptor;
class QTreeView;
class QStandardItemModel;
class QSpacerItem;

class clipboardDialog : public QDialog
{
    Q_OBJECT

    public:

        clipboardDialog(Raptor *raptor, QString const& folder);
	~clipboardDialog();

	void syncLinks();
        void setFolder(QString const& folder);

        QMap<QString, QPair<Qt::CheckState, bool> > *clipboardLinks;

    private:
        QPointer<Raptor> r;

        QSpacerItem *spacer;

	QPointer<QLabel> topLabel;
        QPointer<QLabel> folderLabel;
        QPointer<QPushButton> checkPushButton;
        QPointer<QPushButton> okPushButton;
        QPointer<QLineEdit> folderLineEdit;
	QPointer<QTreeView> treeView;
	QPointer<QStandardItemModel> modelFiles;

    private slots:
        void slot_okPushButton_clicked();
	void slot_checkPushButton_clicked();
        void slot_modelFiles_dataChanged(const QModelIndex & topLeft, const QModelIndex & bottomRight);
};

#endif // CLIPBOARDDIALOG_H
